
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <title>后台登录</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link rel="icon" href="/images/favicon.ico" sizes="32x32" />
    <link rel="stylesheet" href="/css/font.css">
    <link rel="stylesheet" href="/css/xadmin.css">
    <script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
    <script src="/layui/layui.js"></script>
    <script type="text/javascript" src="/js/xadmin.js"></script>
    <script src="/layui_exts/excel.js"></script>

    <style>
        .o_div{
            background: url("/images/01.jpg") no-repeat;
        }
        .o_span{
            display: block;
            text-align: center;
            font-size: 20px;
            letter-spacing:8px
        }
    </style>
</head>
<body>
<!-- 顶部开始 -->
<div class="container">
    <div class="logo"><a href="javascript:;">学生宿舍管理系统</a></div>
    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <a href="javascript:;" th:text="${ad.account}"></a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd><a title="修改个人信息"  id= "updateEdit"  th:href="@{'/findStudentById?Id='+${ad.account}}">
                        修改个人信息</a>
                </dd>
                <dd><a th:href="@{'/ForgetPd2?account='+${ad.account}}" target="_blank">修改密码</a></dd>
                <dd><a href="/logout">退出</a></dd>
            </dl>
        </li>
    </ul>

</div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">


            <li class="open">
                <a href="javascript:;">
                    <i class="iconfont">&#59095;</i>
                    <cite>系统功能</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>

                <ul class="sub-menu" style="display: block;">
                    <li>
                        <a _href="/findDormitoryStudent">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>我的舍友</cite>
                        </a>
                    </li >
                </ul>

                <ul class="sub-menu" style="display: block;">
                    <li>
                        <a _href="/findDormRepair">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>我要报修</cite>
                        </a>
                    </li >
                </ul>

            </li>






        </ul>
    </div>
</div>
<!-- <div class="x-slide_left"></div> -->
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->
<div class="page-content">
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li class="home"><i class="layui-icon">&#xe68e;</i>首页</li>
        </ul>
        <div class="layui-tab-content" >
            <div class="layui-tab-item layui-show o_div" >
                <span class="o_span" th:text="'同学您好，'+'欢迎来到学生宿舍管理系统！'"></span>
                <div class="layui-col-md6" style="padding: 30px;left: 60px;background-color: #F2F2F2;">
                    <div class="layui-card">
                        <div class="layui-card-header">个人信息
                        </div>
                        <button onclick="getCode()" id="getQR">点击获取二维码</button>
                        <ul id="result">
                        </ul>
                        <div class="layui-card-body" th:text="'学号：'+${ad.account}">
                        </div>
                        <div class="layui-card-body" th:text="'姓名：'+${info.name}">
                        </div>
                        <div class="layui-card-body" th:text="'手机号：'+${info.phone}">
                        </div>
                        <div class="layui-card-body" th:text="'邮箱：'+${info.email}">
                        </div>
                        <div class="layui-card-body">
                            <!--<div class="layui-card-body" th:text="'姓名：'+${ad.aName}">
                            </div>
                            <div class="layui-card-body">
                                <div class="layui-card-body" th:text="'电话：'+${ad.aPhone}">
                                </div>
                                <div class="layui-card-body">
                                    <div class="layui-card-body" th:text="'权限级别：'+${ad.aDescribe}">
                                    </div>
                                </div>
                            </div>-->
                        </div>
                    </div>
                </div>
            </div>
        </div></div></div>

<div class="page-content-bg"></div>
<!-- 右侧主体结束 -->
<!-- 中部结束 -->
<script>

    layui.config({
        base: 'layui_exts/',
    }).extend({
        excel: 'excel',
    });

    function getCode(){
        $("#getQR").hide();
        $("#result").append("<img src=\"/getQRcode\"/>");
        $("#result").append("<p>"+"二维码五分钟内有效(如过期请刷新页面重新获取)"+"</p>")
    }

</script>
</body>
</html>
